package com.panfeng.xcloud.boss.provider.assets.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SetStopLossNumReqDTO {

    @NotNull(message = "用户ID不能为null")
    @NotEmpty(message = "用户ID不能为空")
    @ApiModelProperty("用户账户ID")
    private String userId;

    @NotNull(message = "交易所类型不能为null")
    @ApiModelProperty("交易所类型(0.okex 1.huobi 2.binance)")
    private Integer exchangeType;

    @NotNull(message = "设置的止损次数不能为null")
    @ApiModelProperty("设置的止损次数")
    private Integer stopLossNum;

    @NotNull(message = "多空方向不能为null")
    @NotEmpty(message = "多空方向不能为空")
    @ApiModelProperty("多空方向(buy:多单 sell:空单)")
    private String direction;

}
